package com.example.service;

import com.example.model.hosp.Department;
import com.example.vo.hosp.DepartmentQueryVo;
import com.example.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface DepartmentService {
    void save(Map<String, Object> parameterMap);

    Page<Department> findPageDepartment(int page, int limit, DepartmentQueryVo departmentQueryVo);

    void remove(String hoscode, String depcode);

    //根据医院编号查询所有科室
    List<DepartmentVo> findDeptTree(String hosCode);

    /**
     * 根据科室编号、医院编号查询科室名称
     * @param hoscode 医院编号
     * @param depcode 科室编号
     * @return
     */
    String getDepName(String hoscode, String depcode);

    Department getDepartment(String hoscode, String depcode);
}
